<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>中心点旋转</title>
    <style>
        div{
            overflow: hidden;
            width: 200px;
            height: 200px;
            /* background-color: pink; */
            margin:100px auto;
            border: 1px solid pink;
        }
        div::before{
            content: '盒马';
            /* 伪元素为行内元素，没有宽高 ---设置display转换 */
            display: block;
            width: 100%;
            height: 100%;
            background-color: hotpink;
            transform: rotate(180deg);
            transform-origin: left bottom;
            transition:all 0.5s;
        }
        div:hover::before{
            transform: rotate(0deg);
        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>